/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';
.section-with-edit {
  padding-left: 14px;
  padding-right: 14px;
  border-bottom: 0.6px solid @grey-15;
  padding-bottom: 16px;
  &:last-child {
    margin-bottom: 0;
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;

    .section-title {
      font-size: 13px;
      line-height: 20px;
      font-weight: 600;
      color: @grey-900;
      margin: 0;
    }

    .section-edit-button {
      border: none;
      background: transparent;
      color: #595959;
      padding: 4px;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      transition: all 0.2s ease;

      &:hover {
        background: #f5f5f5;
        color: #1890ff;
      }

      .anticon {
        font-size: 12px;
      }
    }
  }

  .section-content {
    color: #595959;
    line-height: 1.5;
  }
}
